include ../../mk/com_var.mk


$(eval $(call auto_make_local_var,libsys))

SYSINCLUDEC:=../../include/c/  
SYSINCLUDESYS:=../../include/sys/

%.o:SYSCOMPILER_OPT:=-o
%.s:SYSCOMPILER_OPT:=-S -ffreestanding -fno-toplevel-reorder -nostdinc -I $(SYSINCLUDEC) -I $(SYSINCLUDESYS) -fsigned-char -Wall -o

libsys.a:$(libsys_objs)
	$(AR) $(AROPT) $@ $^

%.o:%.s
	$(AS) $(SYSCOMPILER_OPT) $@ $<

$(libsys_aobjs):%.s:%.c
	$(COMPLIER)  $(SYSCOMPILER_OPT) $@ $^
# end of file